package java3_23.Zoo;
//狼类 子类
public class Wolf extends Mammal implements Swimming{
    public Wolf(String name, String sex, String type) {
        super(name, sex, type);
    }

    @Override
    public void eat() {
        System.out.println(getType()+getName()+"正在喝药");
    }

    @Override
    public void play() {
        System.out.println(getType()+getName()+"正在奔跑");
        Wolf.this.swim();
    }


    @Override
    public void swim() {

    }
}
